-- GENERATED SPELL FOR [Kerlonian Evershade] --


function spell0_11218(pUnit, Event) --@Bear Form,Self--
pUnit:FullCastSpellOnTarget(18309,pUnit)
pUnit:RegisterEvent('Sorts_11218', 0, 1)
end

function Sorts_11218(pUnit, Event)
local choix_sorts_11218 = math.random(0, 0)
if choix_sorts_11218 == 0 then
pUnit:RegisterEvent('spell0_11218', 1, 1)
end
end

function mob11218_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_11218', math.random(1500, 3000), 1)
end

function mob11218_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob11218_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob11218_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(11218, 1, 'mob11218_Action')
RegisterUnitEvent(11218, 2, 'mob11218_Leave')
RegisterUnitEvent(11218, 3, 'mob11218_Kill')
RegisterUnitEvent(11218, 4, 'mob11218_Die')
